Skip to content

Add automatic username suggestion with suffix when username is taken#29

Open
bendnema wants to merge 2 commits intoCMU-313:mainfrom
bendnema:main
Open

Add automatic username suggestion with suffix when username is taken#29
bendnema wants to merge 2 commits intoCMU-313:mainfrom
bendnema:main

Conversation

@bendnema
Copy link
Copy Markdown

@bendnema bendnema commented Feb 2, 2026

Summary:
This PR implements automatic username suggestions when a chosen username is already taken.

Changes:
Modified User.uniqueUsername() in src/user/create.js to append "suffix" instead of spaces + base32 number
Updated register.js to display inline suggestions: "Username taken. Maybe try 'test123suffix' instead."
Shows suggestions on both live validation (when blurring field) and form submission

Closes #1

@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 21602199733

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 78.841%

Totals Coverage Status
Change from base Build 21503398961: 0.0%
Covered Lines: 25358
Relevant Lines: 30328

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Suggest a new username if a username is taken during registration

2 participants